function createSelect(val,name){
	
	var selectStructure="<select id='"+name+"' class='form-control' name='path'></select>";
	
	$(val).append(selectStructure);

}

function addPathSelect(val,name){
	createSelect(val,name);
	$.ajax({
		 url:"../rest/config/getNodeByXpath",
	        type:"post",
	        success: function (data) {
	        	$.each(data,function(k,v){	        		
	        		$("#"+name).append("<option id="+k+">"+v+"</option>");
	        	});
		}
	})
}